package com.teradata.random;

import org.junit.Test;

import java.util.Arrays;
import java.util.List;

/**
 * @Project: edb
 * @Description:
 * @Version 1.0
 * @Throws :
 * @Author: <li>2019/4/22 lyndon Create 1.0
 * @Copyright (c)2018-2018 中央结算公司，版权所有
 * @Modified By:
 */
public class RandomTG {

    public static List<String> taskGrpList = Arrays.asList("TG1","TG2");

    @Test
    public void testRandomList() {
        int i = (int) (1 + Math.random() * 2 - 1);
        String tg = taskGrpList.get(i);
        System.out.println(tg);
    }

}
